package com.imut.oa.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class LeaveSubmitDTO {
    @NotNull(message = "请假类型不能为空")
    private Integer leaveType;

    @NotNull(message = "开始时间不能为空")
    private LocalDate startDate;

    @NotNull(message = "结束时间不能为空")
    private LocalDate endDate;

    @NotNull(message = "请假时长不能为空")
    private Integer duration;
    @NotBlank(message = "请假事由不能为空")
    private String reason;

    public Integer getLeaveType() {
        return leaveType;
    }

    public void setLeaveType(Integer leaveType) {
        this.leaveType = leaveType;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
